import service from "@/utils/http";

/** 获取分类列表 */
export const getCateList = () => {
    return service({
        url:"/cate/list",
        method:"GET"
    })
}

/*删除分类列表*/
export const deleteCate = (ids:Array<number|string>) => {
    let str = ids.join(',')
    return service({
        url:"/cate/delete",
        method:"DELETE",
        data:{cateId:str}
    })
}

// 添加分类
export let addCate = (data:any) => {
    return service({
        url:"/cate/create",
        method:"POST",
        data
    })
}

